<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .box{
            position: absolute;
            left: 200px;
            right: 200px;
            width: 10px;
            height: 10px;
            background-color: blue;
        }

    </style>
</head>
<body>
    <div class="box"></div>
    <div class="c"></div>
    <script>
        let box=document.querySelector('.box')
        let r=200
        let xx=400
        let yy=400
        let a=Math.PI/180
        
        setInterval(()=>{
           let x=r*Math.sin(a)
           let y=r*Math.cos(a)
           box.style.left=xx+x+'px'
           box.style.top=yy+y+'px'
           a=a+Math.PI/180
           let b=document.createElement('span')
           let c=document.querySelector('.c')
           document.body.appendChild(b)
              b.style.display='inline-block'
              b.style.position='absolute'
              b.style.width='2px'
              b.style.height='2px'
              b.style.left=yy+y+'px'
              b.style.top=xx+x+'px'
              
              
              b.style.backgroundColor='red'
            
            
        },50)
    </script>
</body>
</html>